From: Po Lu Date: Sun, 13 Mar 2022 06:50:12 +0000 (+0000) Subject: ; * haiku_support.cc (MessageReceived): Fix 32-bit build. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~2370^2~1164 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=ae8c146332132013bd98d63da1a4f8bbff7624f6;p=emacs.git ; * haiku_support.cc (MessageReceived): Fix 32-bit build. --- diff --git a/src/haiku_support.cc b/src/haiku_support.cc index ecd93dd226a..98cc8e93147 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc @@ -1596,7 +1596,9 @@ public: proportion = (float) portion / range; value = msg->GetInt32 ("emacs:units", 0); can_overscroll = msg->GetBool ("emacs:overscroll", false); - value = std::max (0, value); + + if (value < 0) + value = 0; if (dragging != 1) {